package com.lishu.carsafe.model;


import java.io.Serializable;

public class BaseModel implements Serializable {

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean success(){
        if (code != null && code.equalsIgnoreCase("0")){
            return true;
        }

        return false;
    }
}
